

<% form_remote_for([@memorylane, TimelineEvent.new,],:html => {:id => 'timeline_event_form',:multipart => true}) do |f| %>
<div id="placeholder">
</div>
   <div>
      <h3><a href="#">Basic</a></h3>
      <div class="dialog">
        <table>
          <tbody>

            <tr class="prop">
              <td valign="top" >
                <label for="title">Title:</label>
              </td>
              <td valign="top" >
                <%= f.text_field :title %>

              </td>
             <td valign="top" class="name">
                <label for="type">Is Duration?</label>
              </td>
              <td valign="top" >
                <%= f.check_box :is_duration%>
              </td>
            </tr>
           <tr class="prop">
              <td valign="top" class="name">
                <label for="title">Start Date:</label>
              </td>
              <td valign="top" >
                <%= f.text_field :event_start %>
              </td>
               <td valign="top" class="name">
                <label for="title">End Date:</label>
              </td>
              <td valign="top" >
                 <%= f.text_field :event_end %>
               
              </td>
            </tr>
            <tr class="prop">
              <td valign="top" class="name">
                <label for="title">Latest Start Date:</label>
              </td>
              <td valign="top" >
                <%= f.text_field :latest_start %>
              </td>
                            <td valign="top" class="name">
                <label for="title">Earliest End Date:</label>
              </td>
              <td valign="top" >
                <%= f.text_field :earliest_end %>
              </td>
            </tr>
            <tr class="prop">
              <td valign="top" class="name">
                <label for="type"> Image Link:</label>
              </td>
              <td valign="top"  >
                <%= f.text_field :link %>
              </td>
              <td valign="top" class="name">
                <label for="type">Image:</label>
              </td>
              <td valign="top"  >
                <%= file_field_tag 'link' %>
              </td>
            </tr>
            <tr>
               <td valign="top" class="name">
                <label for="title">Background:</label>
              </td>
              <td valign="top"  >
                      <%= f.text_field :color, :value =>'#CCCCCC', :id => 'id_color' %>

              </td>
              <td valign="top" class="name">
                <label for="title">Text Colour:</label>
              </td>
              <td valign="top" >
                <%= f.text_field :text_color, :value =>'#333333' , :id => 'id_textcolor'%>
              </td>
            </tr>
          </tbody>
        </table>

        <table>
          <tbody>
            <tr class="prop">
            <td valign="top" class="name">
                <label for="description">Description:</label>
              </td>
              <td valign="top" >
                <%= f.text_area :description %>
              </td>
            </tr>
           <tr class="prop">
          <td valign="top" class="name">
            <label for="title">Select the  location:</label>
          </td>
          <td valign="top" >
            <%= f.text_field :latitude, :id => 'id_latitude'%>
            <%= f.text_field :longtitude, :id => 'id_longtitude'%>
            <a href="javascript:showMap();">Click here to open a map</a>
          </td>
        </tr>
          </tbody>
        </table>
      </div>


    </div>
   
    <%= f.hidden_field :memorylane_id, :value =>@memorylane.id %>
  <div class="buttons">
    <span class="button">
      <input class="save" type="submit" value="Create"/>
    </span>
  </div>

<% end %>

<br>

